<?php

	class EventItemMaterial implements iModel {
		
		public $eventItemMaterialId;
		public $eventItemId;
		public $materialFileName;
		public $title;
		public $description;
		public $materialUser;
		public $materialFileExtension;
		public $materialTempName;
		public $materialFileUrl;
		
		public function __construct (){
			$this->setMaterialUser(new EventItemUser());
		}
		
		public function getEventItemMaterialId() {
			 return $this->eventItemMaterialId; 
		}
		 
		public function getEventItemId() {
			 return $this->eventItemId; 
		}
		 
		public function getMaterialFileName() {
			 return $this->materialFileName; 
		}
		 
		public function getTitle() {
			 return $this->title; 
		} 
		
		public function getDescription() {
			 return $this->description; 
		}
		 
		public function getMaterialUser() {
			 return $this->materialUser; 
		}
		 
		public function getMaterialFileExtension() {
			 return $this->materialFileExtension; 
		}
		 
		public function getMaterialTempName() {
			 return $this->materialTempName; 
		}
		
		public function getMaterialFileUrl() {
			 return $this->materialFileUrl; 
		}
				 
		public function setEventItemMaterialId($eventItemMaterialId) {
			 $this->eventItemMaterialId = $eventItemMaterialId; 
		}
		 
		public function setEventItemId($eventItemId) {
			 $this->eventItemId = $eventItemId; 
		}
		 
		public function setMaterialFileName($materialFileName) {
			 $this->materialFileName = $materialFileName; 
		} 
		
		public function setTitle($title) {
			 $this->title = $title; 
		}
		 
		public function setDescription($description) {
			 $this->description = $description; 
		}
		 
		public function setMaterialUser($materialUser) {
			 $this->materialUser = $materialUser; 
		} 
		
		public function setMaterialFileExtension($materialFileExtension) {
			 $this->materialFileExtension = $materialFileExtension; 
		} 
		
		public function setMaterialTempName($materialTempName) {
			 $this->materialTempName = $materialTempName; 
		} 
		
		public function setMaterialFileUrl($materialFileUrl) {
			 $this->materialFileUrl = $materialFileUrl; 
		}
		
		public function JSONToObject($eventItemMaterialJSON) {
			$this->setEventItemMaterialId($eventItemMaterialJSON->eventItemMaterialId);
			$this->setEventItemId($eventItemMaterialJSON->eventItemId);
			$this->setTitle($eventItemMaterialJSON->title);
			$this->setDescription($eventItemMaterialJSON->description);
			$eventItemUser = new EventItemUser();
			$eventItemUser->JSONToObject($eventItemMaterialJSON->materialUser);
			$this->setMaterialUser($eventItemUser);
		}
		
		
	}

?>
